@charset "utf-8";
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
}
body {
    height: 100%;
}
#game {
    width: 100%;
    height: 100%;
    position: relative;
//  background-color: skyblue;
    border: 1px solid #000;
}
#main {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -20vh;
//  background-color: pink;
}
.row {
    width: 100%;
    height: 20vh;
    display: flex;
}
.kuai {
    width: 25%;
    flex-grow: 1;
    height: 100%;
    border: 1px solid #222;
    border-left-width: 0;
    border-top-width: 0;
    &:last-of-type {
        border-right-width: 0;
    }
}
#fen {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5vh;
    color: skyblue;
}
.start {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 4vh;
}
//首页界面
#index {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: skyblue;
    h2 {
        font-size: 10vh;
        text-align: center;
        padding-top: 5vh;
        color: #fff;
    }
    .start {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 20vh;
        height: 20vh;
        border: 1vh solid #000;
        border-color: #999;
        border-radius: 4vh;
        background-color: rgba(255,255,255,.8);
        text-align: center;
        line-height: 20vh;
    }
}
//游戏结束
#gameover {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: deepskyblue;
    text-align: center;
    color: #fff;
    display: none;
    h2 {
        font-size: 10vh;
        padding-top: 5vh;
    }
    .defen {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        font-size: 8vh;
    }
    .newGame {
        position: absolute;
        bottom: 15vh;
        left: 0;
        font-size: 6vh;
        width: 100%;
    }
}
